import { Navigate } from 'react-router-dom'
import { Children, lazy } from 'react'
let Message = lazy(() => import('../../views/zhu/message'))
let Indent = lazy(() => import('../../views/zhu/indent'))

let Address = lazy(() => import('../../views/zhu/address'))
let Addaddress = lazy(() => import('../../views/zhu/addAddress'))
let Collect = lazy(() => import('../../views/zhu/collect'))
let Service = lazy(() => import('../../views/zhu/service'))
let Opinion = lazy(() => import('../../views/zhu/opinion'))
let Payment = lazy(() => import('../../views/zhu/payment'))

let Zhu = [
    {
        path: "/message",
        element: <Message></Message>
    },
    {
        path: '/indent',
        element: <Indent></Indent>,
        children: [
            {
                path: "/indent/payment",
                element: <Payment></Payment>
            },
        ]
    },
    {
        path: "/address",
        element: <Address></Address>
    },
    {
        path: "/addAddress",
        element: <Addaddress></Addaddress>
    },
    {
        path: "/collect",
        element: <Collect></Collect>
    },
    {
        path: "/service",
        element: <Service></Service>
    },
    {
        path: "/opinion",
        element: <Opinion></Opinion>
    },
]

export default Zhu